package com.tbit.main.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tbit.main.dao.log.PowerChangePerformanceLogDao;
import com.tbit.main.pojo.PowerChangePerformanceLog;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;

/**
 * @author: qiu.longjie
 * @create: 2025-04-08
 */
@Slf4j
@Service
@AllArgsConstructor
public class PowerChangePerformanceLogService extends ServiceImpl<PowerChangePerformanceLogDao, PowerChangePerformanceLog> {

    @Transactional("logTransactionManager")
    public boolean insertBatch(Collection<PowerChangePerformanceLog> entityList) {
        return this.saveBatch(entityList);
    }
}
